﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_DevMan_List.aspx.cs" Inherits="Admin_DevMan_List" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="./css/gridview.css" />
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css" />
    <link rel="stylesheet" href="./css/xadmin.css" />
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script type="text/javascript" src="./js/cookie.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style>
        .all{
            width:95%;
            margin-left:2.5%
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <br />
        <div class="all"> 
        <xblock>
       <%-- <button class="layui-btn layui-btn-danger" onclick="delAll();return false;"><i class="layui-icon"></i>批量删除</button>--%>
        <button class="layui-btn layui-btn-warm" onclick="x_admin_show('添加设备','Admin_DevMan_Add.aspx');return false;"><i class="layui-icon"></i>添加</button>
        <span class="x-right" style="line-height:40px">共有数据：<asp:Label ID="MsgNum" runat="server" Text="Label"></asp:Label> 条</span>
      </xblock>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

    <%-- <div class="page">
        <div>
          <a class="prev" href="">&lt;&lt;</a>
          <span class="current">1</span>
          <a class="num" href="">2</a>
          <a class="num" href="">3</a>
          <a class="num" href="">489</a>
          <a class="next" href="">&gt;&gt;</a>
        </div>
      </div>--%>
         </div>
     <%--   <asp:HiddenField ID="HiddenField1" runat="server" Value="111" />--%>
      

<%--        <script type="text/javascript">
            function getTableContent(node) {
                // 按钮的父节点的父节点是tr。
                var pronum = "";
                var tr1 = node.parentNode.parentNode;
                var rownum = tr1.rowIndex;
                //pronum = tr1.cells[1].innerText;
                if (window.confirm('你确定要删除该设备信息吗？')) {
                    //alert("确定");                
                   // document.getElementById("Labelnum" ).innerHTML= pronum;
                    //document.getElementById("Labelnum").value = pronum;
                    pronum = tr1.cells[1].innerText;
                    //document.getElementById("HiddenField1").Value = pronum;
                    $("<%=HiddenField1.ClientID%>").Value=pronum;
                   
                    alert(pronum);
                    var table = document.getElementById("table");
                    table.deleteRow(rownum);
                    return true;
                } else {
                    //alert("取消");
                    return false;
                }
                //alert(tr1.rowIndex);              
                //pronum = tr1.cells[1].innerText;
                //alert(pronum);

            }
</script>--%>
    </form>
</body>
</html>
